package com.hdoit.ares.logical.share.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hdoit.ares.logical.share.model.ShareInfo;
import com.hdoit.ares.logical.viewmodel.share.ShareInfoSearch;
import com.tennetcn.common.dao.base.IMapper;
import com.tennetcn.common.message.PagerModel;

/**
 * @author      wangxuexue
 * @email       
 * @createtime  2017年11月18日 11:56:39
 * @comment
 */
@Repository(value="shareInfoMapper")
public interface ShareInfoMapper extends IMapper<ShareInfo>{

	public List<ShareInfo> queryLimitInfo(String infoType);
	
	public List<ShareInfo> queryAllInfo(String infoType);
	
	public ShareInfo queryInfoDetails(String id);
	
	public List<ShareInfo> queryOtherInfo(@Param("infoType")String infoType,@Param("id")String id);
	
    public int queryShareInfoCount(@Param("search")ShareInfoSearch shareInfoSearch);
	
	public List<ShareInfo> queryShareInfoList(@Param("search")ShareInfoSearch shareInfoSearch,@Param("pager")PagerModel pagerModel);
	
	public ShareInfo queryShareInfoModel(String key);
	
	public int updatePicById(@Param("id")String id);
	
	public int updateSmallPicById(@Param("id")String id);
}